import request from '@/utils/request'

// 管理员转账
export function admCashOut(extractId) {
  return request({
    url: '/system/extract/admCashOut/' + extractId,
    method: 'get'
  })
}

// 查询提现列表
export function listExtract(query) {
  return request({
    url: '/system/extract/list',
    method: 'get',
    params: query
  })
}

export function extractFlash(data) {
  return request({
    url: '/system/extract/flash',
    method: 'post',
    params: data
  })
}

// 查询提现详细
export function getExtract(extractId) {
  return request({
    url: '/system/extract/' + extractId,
    method: 'get'
  })
}

// 修改提现
export function updateExtract(data) {
  return request({
    url: '/system/extract',
    method: 'put',
    data: data
  })
}

// 删除提现
export function delExtract(extractId) {
  return request({
    url: '/system/extract/' + extractId,
    method: 'delete'
  })
}
